using Jbe.Composite.Extensions;
using Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Applications;
using Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Presentation;
using Microsoft.Practices.Composite.Modularity;

namespace Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView
{
    public class Module : IModule
    {
        private readonly IApplicationContainer container;


        public Module(IApplicationContainer container)
        {
            this.container = container;

            container.RegisterType<IFunctionGeneratorView, FunctionGeneratorView>(false);
            container.RegisterType<IConfigurationEditView, ConfigurationEditWindow>(false);
        }


        public void Initialize()
        {
            container.Resolve<ModuleController>().Initialize();
        }
    }
}
